
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 合伙人申请记录 */
const schema = MongooseFactory.Schema({
    userid: {
        type: Schema.Types.ObjectId,
        ref: "customer_account"
    },
    modifyuser: {
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifytime: {
        type: Date
    },
    // 所在区域
    area: {
        type: String
    },
    // 联系电话
    phone: {
        type: String
    },
    // 联系人
    name: {
        type: String
    },
    // 邀请码
    valite: {
        type: String
    },
    // 备注
    remarks: {
        type: String
    },
    //是否联系
    iscontact: {
        type: Number,
        default: 0
    },
    //是否申请通过
    ispass: {
        type: Boolean,
        default: false
    },
});



export const agentjoinModel = MongooseFactory.Model("agentjoin", schema);